
from feature import Feature, FeatureParser, registerFeatureParserClass

class DbSnpFeatureParser(FeatureParser):
  def parse(self, line):
      if line == None or line.startswith("#"): return None
      cols = line.strip().split("\t")
      return Feature(cols[0], cols[1], cols[1], line)
  def getMaxFeatureSize(self):
      return 1

registerFeatureParserClass("sorted-dbsnp", DbSnpFeatureParser)

